package com.fh.modules.dbms.service;

import com.fh.common.web.AbstractService;
import com.fh.modules.dbms.entity.DbmsPackageBody;
import com.fh.modules.dbms.entity.DbmsPackageDeclare;

import java.util.List;

/**
 * @Author qiujunda
 * @Date 23/07/2020
 * @Description
 */
public interface IDbmsPackageDeclareService extends AbstractService<DbmsPackageDeclare> {

    /**
     * 删除包申明，物理删除
     * @param packageId
     * @return
     */
    int deleteByPackageId(Long packageId);

    /**
     * 对比包是否相同
     * @param packageId1
     * @param packageId2
     * @return
     */
    boolean comparePackageDelare(Long packageId1, Long packageId2);

    /**
     * 查询包所有申明
     * @param packageId
     * @return
     */
    List<DbmsPackageDeclare> queryDbmsPackageDeclares(Long packageId);

}
